package com.xinxin.siteset.controller;

import com.xinxin.siteset.service.CommonService;
import com.xinxin.siteset.utils.ResponseUtil;
import com.xinxin.siteset.vo.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 史鑫鑫
 * @date Created in 2019/6/7 1:46
 */
@RestController
@RequestMapping("/v1/api")
public class CommonController {
    @Autowired
    CommonService commonService;

    @GetMapping("/allsites")
    public Response allsites(){
        return ResponseUtil.success(commonService.getAllSites());
    }
}
